home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / src / fig09_07.jar / Ch09 / Fig09_07 / Point2.h < prev   
C/C++ Source or Header  |  1997-08-25  |  316b  |  16 lines

  1. // Fig. 9.7: point2.h
  2. // Definition of class Point
  3. #ifndef POINT2_H
  4. #define POINT2_H
  5.  
  6. class Point {
  7. public:
  8.    Point( int = 0, int = 0 );  // default constructor
  9.    ~Point();    // destructor
  10. protected:      // accessible by derived classes
  11.    int x, y;    // x and y coordinates of Point
  12. };
  13.  
  14. #endif
  15.  
  16.